package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsSiteContactMapper;
import com.ruoyi.cms.domain.CmsSiteContact;
import com.ruoyi.cms.service.ICmsSiteContactService;

/**
 * 意见提交Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-13
 */
@Service
public class CmsSiteContactServiceImpl implements ICmsSiteContactService 
{
    @Autowired
    private CmsSiteContactMapper cmsSiteContactMapper;

    /**
     * 查询意见提交
     * 
     * @param id 意见提交主键
     * @return 意见提交
     */
    @Override
    public CmsSiteContact selectCmsSiteContactById(Long id)
    {
        return cmsSiteContactMapper.selectCmsSiteContactById(id);
    }

    /**
     * 查询意见提交列表
     * 
     * @param cmsSiteContact 意见提交
     * @return 意见提交
     */
    @Override
    public List<CmsSiteContact> selectCmsSiteContactList(CmsSiteContact cmsSiteContact)
    {
        return cmsSiteContactMapper.selectCmsSiteContactList(cmsSiteContact);
    }

    /**
     * 新增意见提交
     * 
     * @param cmsSiteContact 意见提交
     * @return 结果
     */
    @Override
    public int insertCmsSiteContact(CmsSiteContact cmsSiteContact)
    {
        return cmsSiteContactMapper.insertCmsSiteContact(cmsSiteContact);
    }

    /**
     * 修改意见提交
     * 
     * @param cmsSiteContact 意见提交
     * @return 结果
     */
    @Override
    public int updateCmsSiteContact(CmsSiteContact cmsSiteContact)
    {
        return cmsSiteContactMapper.updateCmsSiteContact(cmsSiteContact);
    }

    /**
     * 批量删除意见提交
     * 
     * @param ids 需要删除的意见提交主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteContactByIds(Long[] ids)
    {
        return cmsSiteContactMapper.deleteCmsSiteContactByIds(ids);
    }

    /**
     * 删除意见提交信息
     * 
     * @param id 意见提交主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteContactById(Long id)
    {
        return cmsSiteContactMapper.deleteCmsSiteContactById(id);
    }
}
